package com.ruoyi.project.syl_Sxl.controller;

import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.syl_Sxl.domain.HisEducation;
import com.ruoyi.project.syl_Sxl.service.IHisEducationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/syl_Sxl/education")
public class HisEducationController {
    @Autowired
    private IHisEducationService iHisEducationService;

    /**
     * 获取背景选择框列表
     */
    @GetMapping("/educationSelect")
    public AjaxResult optionselect()
    {
        List<HisEducation> list = iHisEducationService.selectAll();
        return AjaxResult.success(list);
    }
}
